-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for multi-threadded Queue loading #45
Merged
campb303
merged 7 commits into
staging
from
feature-implement-multiparsing-when-loading-multiple-queues-and-items
Aug 2, 2021
Merged
Add support for multi-threadded Queue loading #45
campb303
merged 7 commits into
staging
from
feature-implement-multiparsing-when-loading-multiple-queues-and-items
Aug 2, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…e starmap_async function in the multiprocessing package
… the list of items
…at represent the different queues) and a headers_only boolean value. Modified the docstring accordingly
…custom class from the previous comitt that allows subprocesses to spawn other subprocesses
campb303
commented
Aug 2, 2021
src/webqueue2api/parser/queue.py
Outdated
@@ -178,15 +186,40 @@ def get_queue_counts() -> list: | |||
|
|||
return sorted_queue_info | |||
|
|||
def load_queues() -> list: | |||
"""Return a list of Queues for each queue. | |||
def load_queues(*queues, headers_only: bool = True) -> list: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add type to queues
src/webqueue2api/parser/queue.py
Outdated
def load_queues(*queues, headers_only: bool = True) -> list: | ||
"""Returns a list of queues | ||
|
||
Example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add example.
src/webqueue2api/parser/queue.py
Outdated
|
||
Args: | ||
headers_only (bool, optional): Weather or not the content of items in the queue should be loaded. Defaults to True. | ||
*queues: List of strings that represent Queue names. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add type to queues.
Sign in
to join this conversation on GitHub.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.